package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) MenuUpdate(ctx context.Context, req *v1.MenuUpdateReq) (res *v1.MenuUpdateRes, err error) {
	res = &v1.MenuUpdateRes{}
	err = service.SysMenu().Update(ctx, req.Id, &req.MenuFormInput)
	return
}
